﻿@{
    ViewBag.Title = LIMIS.Properties.Settings.Default.LocalName + LIMIS.Properties.Settings.Default.SystemName;
    Layout = null;
}
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title>
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <meta name="viewport" content="width=device-width" />
    @Styles.Render("~/Content/themes/cupertino/css")
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
    <script>
        if (top.location != self.location) top.location.href = self.location.href;
    </script>
</head>
<body>
    <iframe id="mainFrame" name="mainFrame" class="ui-layout-center" width="100%" frameborder="0" scrolling="auto" src="@Url.Action("Main", "Home")"></iframe>
    <div class="ui-layout-north" style="display: none;">
        <h1 id="logo" class="float-left">
            @ViewBag.Title
        </h1>
        <div id="login" class="float-right">            
            @Html.Partial("_LoginPartial")
            @Html.ActionLink("回到主界面", "Main","Home", routeValues: null, htmlAttributes: new { target="mainFrame" })
        </div>
    </div>
    <div class="ui-layout-west" style="display: none;">
        @Html.Partial("_menus")
    </div>
    <div class="ui-layout-south" style="display: none;">
        &copy; @DateTime.Now.Year - @LIMIS.Properties.Settings.Default.Copyright 技术支持：<a href="http://feshine.net" target="_blank">飞扬网络</a>
    </div>
    <div id="topDialog" style="display: none;"></div>
    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/layout")
    @Scripts.Render("~/bundles/jqueryui")
    <script>
        $(function () {
            $("body").layout({
                defaults: {
                    resizable: false,
                    togglerTip_open: "关闭",
                    togglerTip_closed: "展开"
                }, north: {
                    size: 68,
                    closable: false,
                    spacing_open: 0
                }, west: {
                    size: 230,
                    onresize: $.layout.callbacks.resizePaneAccordions,
                    togglerLength_closed: "100%",
                    togglerLength_open: "100%"
                }, south: {
                    size: 16,
                    spacing_open: 0,
                    closable: false
                }, center: {
                    maskContents: true,
                    onresize: $.layout.callbacks.resizePaneAccordions
                }
            });
            $("#menus").accordion({
                heightStyle: "fill",
                collapsibleType:true
            });
            $(".ui-layout-north a").button();
            $(".ui-layout-west ul").menu();
        });
    </script>
</body>
</html>
